<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:output
            doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
            doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
            encoding="utf-8"/>

    <xsl:template match="page">
        <html>
            <head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
                <link rel="stylesheet" type="text/css" href="/translate/translate.css"/>
                <script type="text/javascript" src="/lib/prototype.js"></script>
                <script type="text/javascript" src="/translate/translate.js"></script>
                <title>
                    Переводы
                </title>
            </head>
            <body>
                <table>
                    <xsl:for-each select="//line">
                        <xsl:variable name="id" select="@id"/>
                        <tr id="row{$id}" onclick="Translate.begin({$id})">
                            <td>
                                <xsl:value-of select="@en_country"/>
                            </td>
                            <td>
                                <xsl:value-of select="@en_city"/>
                            </td>
                            <td>
                                <xsl:value-of select="@ru_country"/>
                            </td>
                            <td style="font-size: 12px">
                                <a href="http://ru.wikipedia.org/w/index.php?search={@en_city}" target="_blank">wiki</a>&#160;
                                <a href="http://www.google.ru/search?lr=lang_ru&amp;q={@en_city}" target="_blank">google</a>
                            </td>
                            <td>
                                <input id="ru_city{$id}" onfocus="Translate.begin({$id})"/>
                            </td>
                        </tr>
                    </xsl:for-each>
                </table>
            </body>
        </html>
    </xsl:template>
</xsl:stylesheet>